<?

require_once "_lib/_lib.php";

$lang = ($l = context('lang')) ? $l : LANG_DEF;

//$DATA['translation'] = datafetch_array('db_list', array(
$DATA['t'] = datafetch_array('db_list', array(
	'table' => tb('data'), 
	'where' => "id_data=".D_LANG." AND assoc='$lang'", 
	'index' => 'name'));
	
if (context('isAdminPage')) {
	@include block("admin-$CONTEXT[lang]");	
} else {
	@include block("lang-$CONTEXT[lang]");	
}
